package com.entity;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.Serializable;
import java.util.List;

/**
 * @author WZ
 * @version 1.0
 * @date 2021/10/1 13:27
 */
@NoArgsConstructor
@Data
public class ResponseMessage implements Serializable {

//	private final static Logger logger = LoggerFactory.getLogger(ResponseMessage.class);

	private static final long serialVersionUID = 1L;
	public static final String SUCCESS="200";
	public static final String FAIL="500";


	private String code;
	private String msg;
	private Object data;

	public ResponseMessage(String code, String msg,Object data) {
		this.code=code;
		this.msg=msg;
		this.data=data;
	}


	public ResponseMessage(String code, String msg) {
		this.code = code;
		this.msg = msg;
	}
}
